﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace EFModel.Migrations
{
    public partial class lm : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "config_file_first_kind",
                columns: table => new
                {
                    ffk_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    first_kind_id = table.Column<int>(nullable: false),
                    first_kind_name = table.Column<string>(maxLength: 20, nullable: true),
                    first_kind_salary_id = table.Column<int>(nullable: false),
                    first_kind_sale_id = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_file_first_kind", x => x.ffk_id);
                });

            migrationBuilder.CreateTable(
                name: "config_major_kind",
                columns: table => new
                {
                    mfk_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    major_kind_id = table.Column<string>(nullable: true),
                    major_kind_name = table.Column<string>(maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_major_kind", x => x.mfk_id);
                });

            migrationBuilder.CreateTable(
                name: "config_public_char",
                columns: table => new
                {
                    pbc_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    attribute_kind = table.Column<string>(nullable: true),
                    attribute_name = table.Column<string>(maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_public_char", x => x.pbc_id);
                });

            migrationBuilder.CreateTable(
                name: "Role",
                columns: table => new
                {
                    RoleID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Rolename = table.Column<string>(maxLength: 30, nullable: true),
                    Texs = table.Column<string>(maxLength: 300, nullable: true),
                    Ysn = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Role", x => x.RoleID);
                });

            migrationBuilder.CreateTable(
                name: "type",
                columns: table => new
                {
                    id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    name = table.Column<string>(maxLength: 30, nullable: true),
                    pid = table.Column<int>(nullable: false),
                    icon = table.Column<string>(maxLength: 30, nullable: true),
                    path = table.Column<string>(maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_type", x => x.id);
                });

            migrationBuilder.CreateTable(
                name: "config_file_second_kind",
                columns: table => new
                {
                    fsk_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    first_kind_id = table.Column<int>(nullable: false),
                    first_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    second_kind_id = table.Column<int>(nullable: false),
                    second_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    second_salary_id = table.Column<string>(nullable: true),
                    second_sale_id = table.Column<string>(nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_file_second_kind", x => x.fsk_id);
                    table.ForeignKey(
                        name: "FK_config_file_second_kind_config_file_first_kind_first_kind_id",
                        column: x => x.first_kind_id,
                        principalTable: "config_file_first_kind",
                        principalColumn: "ffk_id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "config_major",
                columns: table => new
                {
                    mak_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    major_kind_id = table.Column<int>(nullable: false),
                    major_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    major_id = table.Column<string>(nullable: true),
                    major_name = table.Column<string>(maxLength: 30, nullable: true),
                    test_amount = table.Column<short>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_major", x => x.mak_id);
                    table.ForeignKey(
                        name: "FK_config_major_config_major_kind_major_kind_id",
                        column: x => x.major_kind_id,
                        principalTable: "config_major_kind",
                        principalColumn: "mfk_id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "salary_standard_details",
                columns: table => new
                {
                    sdt_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    standard_id = table.Column<string>(maxLength: 14, nullable: false),
                    standard_name = table.Column<string>(maxLength: 300, nullable: true),
                    item_id = table.Column<int>(nullable: false),
                    item_name = table.Column<string>(maxLength: 300, nullable: true),
                    salary = table.Column<double>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_salary_standard_details", x => x.sdt_id);
                    table.ForeignKey(
                        name: "FK_salary_standard_details_config_public_char_item_id",
                        column: x => x.item_id,
                        principalTable: "config_public_char",
                        principalColumn: "pbc_id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "users",
                columns: table => new
                {
                    u_id = table.Column<short>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    u_name = table.Column<string>(maxLength: 30, nullable: true),
                    u_true_name = table.Column<string>(maxLength: 30, nullable: true),
                    u_password = table.Column<string>(maxLength: 30, nullable: true),
                    RoleID = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_users", x => x.u_id);
                    table.ForeignKey(
                        name: "FK_users_Role_RoleID",
                        column: x => x.RoleID,
                        principalTable: "Role",
                        principalColumn: "RoleID",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "RolPermissions",
                columns: table => new
                {
                    RolePermissionsID = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    RoleID = table.Column<int>(nullable: false),
                    PermissionsID = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_RolPermissions", x => x.RolePermissionsID);
                    table.ForeignKey(
                        name: "FK_RolPermissions_type_PermissionsID",
                        column: x => x.PermissionsID,
                        principalTable: "type",
                        principalColumn: "id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_RolPermissions_Role_RoleID",
                        column: x => x.RoleID,
                        principalTable: "Role",
                        principalColumn: "RoleID",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "config_file_third_kind",
                columns: table => new
                {
                    ftk_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    first_kind_id = table.Column<int>(nullable: false),
                    first_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    second_kind_id = table.Column<int>(nullable: false),
                    second_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    third_kind_id = table.Column<int>(nullable: false),
                    third_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    third_kind_sale_id = table.Column<string>(nullable: true),
                    third_kind_is_retail = table.Column<string>(maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_config_file_third_kind", x => x.ftk_id);
                    table.ForeignKey(
                        name: "FK_config_file_third_kind_config_file_first_kind_first_kind_id",
                        column: x => x.first_kind_id,
                        principalTable: "config_file_first_kind",
                        principalColumn: "ffk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_config_file_third_kind_config_file_second_kind_second_kind_id",
                        column: x => x.second_kind_id,
                        principalTable: "config_file_second_kind",
                        principalColumn: "fsk_id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "engage_resume",
                columns: table => new
                {
                    res_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    human_name = table.Column<string>(maxLength: 30, nullable: true),
                    engage_type = table.Column<string>(maxLength: 30, nullable: true),
                    human_address = table.Column<string>(maxLength: 30, nullable: true),
                    human_postcode = table.Column<string>(maxLength: 30, nullable: true),
                    human_major_kind_id = table.Column<int>(nullable: false),
                    human_major_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    human_major_id = table.Column<int>(nullable: false),
                    human_major_name = table.Column<string>(maxLength: 30, nullable: true),
                    human_telephone = table.Column<string>(maxLength: 30, nullable: true),
                    human_homephone = table.Column<string>(maxLength: 30, nullable: true),
                    human_mobilephone = table.Column<string>(maxLength: 30, nullable: true),
                    human_email = table.Column<string>(maxLength: 30, nullable: true),
                    human_hobby = table.Column<string>(maxLength: 30, nullable: true),
                    human_specility = table.Column<string>(maxLength: 30, nullable: true),
                    human_sex = table.Column<string>(maxLength: 30, nullable: false),
                    human_religion = table.Column<string>(maxLength: 30, nullable: true),
                    human_party = table.Column<string>(maxLength: 30, nullable: true),
                    human_nationality = table.Column<string>(maxLength: 30, nullable: true),
                    human_race = table.Column<string>(maxLength: 30, nullable: true),
                    human_birthday = table.Column<DateTime>(type: "date", nullable: false),
                    human_age = table.Column<int>(nullable: false),
                    human_educated_degree = table.Column<string>(maxLength: 30, nullable: true),
                    human_educated_years = table.Column<int>(nullable: false),
                    human_educated_major = table.Column<string>(maxLength: 30, nullable: true),
                    human_college = table.Column<string>(maxLength: 30, nullable: true),
                    human_idcard = table.Column<string>(maxLength: 30, nullable: true),
                    human_birthplace = table.Column<string>(maxLength: 30, nullable: true),
                    demand_salary_standard = table.Column<double>(nullable: false),
                    human_history_records = table.Column<string>(maxLength: 30, nullable: true),
                    remark = table.Column<string>(maxLength: 30, nullable: true),
                    recomandation = table.Column<string>(maxLength: 30, nullable: true),
                    human_picture = table.Column<string>(maxLength: 30, nullable: true),
                    attachment_name = table.Column<string>(maxLength: 30, nullable: true),
                    check_status = table.Column<int>(nullable: false),
                    register = table.Column<string>(maxLength: 30, nullable: true),
                    regist_time = table.Column<DateTime>(type: "date", nullable: false),
                    checker = table.Column<string>(maxLength: 30, nullable: true),
                    check_time = table.Column<DateTime>(type: "date", nullable: false),
                    interview_status = table.Column<int>(nullable: false),
                    total_points = table.Column<float>(nullable: false),
                    test_amount = table.Column<int>(nullable: false),
                    test_checker = table.Column<string>(maxLength: 30, nullable: true),
                    test_check_time = table.Column<DateTime>(type: "date", nullable: false),
                    pass_register = table.Column<string>(maxLength: 30, nullable: true),
                    pass_regist_time = table.Column<DateTime>(type: "date", maxLength: 30, nullable: false),
                    pass_checker = table.Column<string>(maxLength: 30, nullable: true),
                    pass_check_time = table.Column<DateTime>(type: "date", nullable: false),
                    pass_check_status = table.Column<int>(nullable: false),
                    pass_checkComment = table.Column<string>(maxLength: 300, nullable: true),
                    pass_passComment = table.Column<string>(maxLength: 300, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_engage_resume", x => x.res_id);
                    table.ForeignKey(
                        name: "FK_engage_resume_config_major_human_major_id",
                        column: x => x.human_major_id,
                        principalTable: "config_major",
                        principalColumn: "mak_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_resume_config_major_kind_human_major_kind_id",
                        column: x => x.human_major_kind_id,
                        principalTable: "config_major_kind",
                        principalColumn: "mfk_id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "engage_major_release",
                columns: table => new
                {
                    mre_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    first_kind_id = table.Column<int>(nullable: false),
                    first_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    second_kind_id = table.Column<int>(nullable: false),
                    second_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    third_kind_id = table.Column<int>(nullable: false),
                    third_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    major_kind_id = table.Column<int>(nullable: false),
                    major_kind_name = table.Column<string>(maxLength: 30, nullable: true),
                    major_id = table.Column<int>(nullable: false),
                    major_name = table.Column<string>(maxLength: 30, nullable: true),
                    human_amount = table.Column<int>(nullable: false),
                    engage_type = table.Column<string>(maxLength: 30, nullable: true),
                    deadline = table.Column<DateTime>(type: "date", nullable: false),
                    register = table.Column<string>(maxLength: 30, nullable: true),
                    changer = table.Column<string>(maxLength: 30, nullable: true),
                    regist_time = table.Column<DateTime>(type: "date", nullable: false),
                    change_time = table.Column<DateTime>(type: "date", nullable: false),
                    major_describe = table.Column<string>(maxLength: 30, nullable: true),
                    engage_required = table.Column<string>(maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_engage_major_release", x => x.mre_id);
                    table.ForeignKey(
                        name: "FK_engage_major_release_config_file_first_kind_first_kind_id",
                        column: x => x.first_kind_id,
                        principalTable: "config_file_first_kind",
                        principalColumn: "ffk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_major_release_config_major_major_id",
                        column: x => x.major_id,
                        principalTable: "config_major",
                        principalColumn: "mak_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_major_release_config_major_kind_major_kind_id",
                        column: x => x.major_kind_id,
                        principalTable: "config_major_kind",
                        principalColumn: "mfk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_major_release_config_file_second_kind_second_kind_id",
                        column: x => x.second_kind_id,
                        principalTable: "config_file_second_kind",
                        principalColumn: "fsk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_major_release_config_file_third_kind_third_kind_id",
                        column: x => x.third_kind_id,
                        principalTable: "config_file_third_kind",
                        principalColumn: "ftk_id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "human_file",
                columns: table => new
                {
                    huf_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    human_id = table.Column<string>(maxLength: 14, nullable: false),
                    first_kind_id = table.Column<int>(nullable: false),
                    first_kind_name = table.Column<string>(maxLength: 300, nullable: true),
                    second_kind_id = table.Column<int>(nullable: false),
                    second_kind_name = table.Column<string>(maxLength: 300, nullable: true),
                    third_kind_id = table.Column<int>(nullable: false),
                    third_kind_name = table.Column<string>(maxLength: 300, nullable: true),
                    human_name = table.Column<string>(maxLength: 300, nullable: true),
                    human_address = table.Column<string>(maxLength: 300, nullable: true),
                    human_postcode = table.Column<string>(maxLength: 300, nullable: true),
                    human_pro_designation = table.Column<string>(maxLength: 300, nullable: true),
                    human_major_kind_id = table.Column<int>(nullable: false),
                    human_major_kind_name = table.Column<string>(maxLength: 300, nullable: true),
                    human_major_id = table.Column<int>(nullable: false),
                    hunma_major_name = table.Column<string>(maxLength: 300, nullable: true),
                    human_telephone = table.Column<string>(maxLength: 300, nullable: true),
                    human_mobilephone = table.Column<string>(maxLength: 300, nullable: true),
                    human_bank = table.Column<string>(maxLength: 300, nullable: true),
                    human_account = table.Column<string>(maxLength: 300, nullable: true),
                    human_qq = table.Column<string>(maxLength: 300, nullable: true),
                    human_email = table.Column<string>(maxLength: 300, nullable: true),
                    human_hobby = table.Column<string>(maxLength: 300, nullable: true),
                    human_speciality = table.Column<string>(maxLength: 300, nullable: true),
                    human_sex = table.Column<string>(maxLength: 300, nullable: true),
                    human_religion = table.Column<string>(maxLength: 300, nullable: true),
                    human_party = table.Column<string>(maxLength: 300, nullable: true),
                    human_nationality = table.Column<string>(maxLength: 300, nullable: true),
                    human_race = table.Column<string>(maxLength: 300, nullable: true),
                    human_birthday = table.Column<DateTime>(type: "date", nullable: false),
                    human_birthplace = table.Column<string>(maxLength: 300, nullable: true),
                    human_age = table.Column<int>(nullable: false),
                    human_educated_degree = table.Column<string>(maxLength: 300, nullable: true),
                    human_educated_years = table.Column<int>(nullable: false),
                    human_educated_major = table.Column<string>(maxLength: 300, nullable: true),
                    human_society_security_id = table.Column<string>(maxLength: 300, nullable: true),
                    human_id_card = table.Column<string>(maxLength: 300, nullable: true),
                    remark = table.Column<string>(maxLength: 300, nullable: true),
                    salary_standard_id = table.Column<string>(nullable: false),
                    salary_standard_name = table.Column<string>(maxLength: 300, nullable: true),
                    salary_sum = table.Column<double>(nullable: false),
                    demand_salaray_sum = table.Column<double>(nullable: false),
                    paid_salary_sum = table.Column<double>(nullable: false),
                    major_change_amount = table.Column<int>(nullable: false),
                    bonus_amount = table.Column<int>(nullable: false),
                    training_amount = table.Column<int>(nullable: false),
                    file_chang_amount = table.Column<int>(nullable: false),
                    human_histroy_records = table.Column<string>(maxLength: 300, nullable: true),
                    human_family_membership = table.Column<string>(maxLength: 300, nullable: true),
                    human_picture = table.Column<string>(maxLength: 300, nullable: true),
                    attachment_name = table.Column<string>(maxLength: 300, nullable: true),
                    check_status = table.Column<int>(nullable: false),
                    register = table.Column<string>(maxLength: 300, nullable: true),
                    checker = table.Column<string>(maxLength: 300, nullable: true),
                    changer = table.Column<string>(maxLength: 300, nullable: true),
                    regist_time = table.Column<DateTime>(nullable: false),
                    check_time = table.Column<DateTime>(nullable: false),
                    change_time = table.Column<DateTime>(nullable: false),
                    lastly_change_time = table.Column<DateTime>(nullable: false),
                    delete_time = table.Column<DateTime>(nullable: false),
                    recovery_time = table.Column<DateTime>(nullable: false),
                    human_file_status = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_human_file", x => x.huf_id);
                    table.ForeignKey(
                        name: "FK_human_file_config_file_first_kind_first_kind_id",
                        column: x => x.first_kind_id,
                        principalTable: "config_file_first_kind",
                        principalColumn: "ffk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_human_file_config_major_human_major_id",
                        column: x => x.human_major_id,
                        principalTable: "config_major",
                        principalColumn: "mak_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_human_file_config_major_kind_human_major_kind_id",
                        column: x => x.human_major_kind_id,
                        principalTable: "config_major_kind",
                        principalColumn: "mfk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_human_file_config_file_second_kind_second_kind_id",
                        column: x => x.second_kind_id,
                        principalTable: "config_file_second_kind",
                        principalColumn: "fsk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_human_file_config_file_third_kind_third_kind_id",
                        column: x => x.third_kind_id,
                        principalTable: "config_file_third_kind",
                        principalColumn: "ftk_id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateTable(
                name: "engage_interview",
                columns: table => new
                {
                    ein_id = table.Column<int>(nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    human_name = table.Column<string>(maxLength: 300, nullable: true),
                    interview_amount = table.Column<int>(nullable: false),
                    human_major_kind_id = table.Column<int>(nullable: false),
                    human_major_kind_name = table.Column<string>(maxLength: 300, nullable: true),
                    human_major_id = table.Column<int>(nullable: false),
                    human_major_name = table.Column<string>(maxLength: 300, nullable: true),
                    image_degree = table.Column<string>(maxLength: 30, nullable: true),
                    native_language_degree = table.Column<string>(maxLength: 300, nullable: true),
                    foreign_language_degree = table.Column<string>(maxLength: 300, nullable: true),
                    response_speed_degree = table.Column<string>(maxLength: 300, nullable: true),
                    EQ_degree = table.Column<string>(maxLength: 300, nullable: true),
                    IQ_degree = table.Column<string>(maxLength: 300, nullable: true),
                    multi_quality_degree = table.Column<string>(maxLength: 300, nullable: true),
                    register = table.Column<string>(maxLength: 300, nullable: true),
                    checker = table.Column<string>(maxLength: 30, nullable: true),
                    registe_time = table.Column<DateTime>(type: "date", nullable: false),
                    check_time = table.Column<DateTime>(type: "date", nullable: false),
                    resume_id = table.Column<int>(nullable: false),
                    result = table.Column<string>(maxLength: 300, nullable: true),
                    interview_comment = table.Column<string>(maxLength: 300, nullable: true),
                    check_comment = table.Column<string>(maxLength: 300, nullable: true),
                    interview_status = table.Column<int>(nullable: false),
                    check_status = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_engage_interview", x => x.ein_id);
                    table.ForeignKey(
                        name: "FK_engage_interview_config_major_human_major_id",
                        column: x => x.human_major_id,
                        principalTable: "config_major",
                        principalColumn: "mak_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_interview_config_major_kind_human_major_kind_id",
                        column: x => x.human_major_kind_id,
                        principalTable: "config_major_kind",
                        principalColumn: "mfk_id",
                        onDelete: ReferentialAction.Restrict);
                    table.ForeignKey(
                        name: "FK_engage_interview_engage_resume_resume_id",
                        column: x => x.resume_id,
                        principalTable: "engage_resume",
                        principalColumn: "res_id",
                        onDelete: ReferentialAction.Restrict);
                });

            migrationBuilder.CreateIndex(
                name: "IX_config_file_second_kind_first_kind_id",
                table: "config_file_second_kind",
                column: "first_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_config_file_third_kind_first_kind_id",
                table: "config_file_third_kind",
                column: "first_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_config_file_third_kind_second_kind_id",
                table: "config_file_third_kind",
                column: "second_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_config_major_major_kind_id",
                table: "config_major",
                column: "major_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_interview_human_major_id",
                table: "engage_interview",
                column: "human_major_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_interview_human_major_kind_id",
                table: "engage_interview",
                column: "human_major_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_interview_resume_id",
                table: "engage_interview",
                column: "resume_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_major_release_first_kind_id",
                table: "engage_major_release",
                column: "first_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_major_release_major_id",
                table: "engage_major_release",
                column: "major_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_major_release_major_kind_id",
                table: "engage_major_release",
                column: "major_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_major_release_second_kind_id",
                table: "engage_major_release",
                column: "second_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_major_release_third_kind_id",
                table: "engage_major_release",
                column: "third_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_resume_human_major_id",
                table: "engage_resume",
                column: "human_major_id");

            migrationBuilder.CreateIndex(
                name: "IX_engage_resume_human_major_kind_id",
                table: "engage_resume",
                column: "human_major_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_human_file_first_kind_id",
                table: "human_file",
                column: "first_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_human_file_human_major_id",
                table: "human_file",
                column: "human_major_id");

            migrationBuilder.CreateIndex(
                name: "IX_human_file_human_major_kind_id",
                table: "human_file",
                column: "human_major_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_human_file_second_kind_id",
                table: "human_file",
                column: "second_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_human_file_third_kind_id",
                table: "human_file",
                column: "third_kind_id");

            migrationBuilder.CreateIndex(
                name: "IX_RolPermissions_PermissionsID",
                table: "RolPermissions",
                column: "PermissionsID");

            migrationBuilder.CreateIndex(
                name: "IX_RolPermissions_RoleID",
                table: "RolPermissions",
                column: "RoleID");

            migrationBuilder.CreateIndex(
                name: "IX_salary_standard_details_item_id",
                table: "salary_standard_details",
                column: "item_id");

            migrationBuilder.CreateIndex(
                name: "IX_users_RoleID",
                table: "users",
                column: "RoleID");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "engage_interview");

            migrationBuilder.DropTable(
                name: "engage_major_release");

            migrationBuilder.DropTable(
                name: "human_file");

            migrationBuilder.DropTable(
                name: "RolPermissions");

            migrationBuilder.DropTable(
                name: "salary_standard_details");

            migrationBuilder.DropTable(
                name: "users");

            migrationBuilder.DropTable(
                name: "engage_resume");

            migrationBuilder.DropTable(
                name: "config_file_third_kind");

            migrationBuilder.DropTable(
                name: "type");

            migrationBuilder.DropTable(
                name: "config_public_char");

            migrationBuilder.DropTable(
                name: "Role");

            migrationBuilder.DropTable(
                name: "config_major");

            migrationBuilder.DropTable(
                name: "config_file_second_kind");

            migrationBuilder.DropTable(
                name: "config_major_kind");

            migrationBuilder.DropTable(
                name: "config_file_first_kind");
        }
    }
}
